package com.cinema;
import java.io.Serializable;
import java.util.Date;

public class Schedule implements Serializable {
    private static final long serialVersionUID = 1L;
    private String scheduleId;   // 场次唯一ID
    private String movieId;      // 关联影片ID
    private String hallName;     // 放映厅(黄金厅/白银厅等)
    private Date showTime;       // 放映时间
    private double price;        // 票价
    private String seatStatus;   // 座位状态(例如"OOOOXXOOO"，O=空，X=售)

    public Schedule(String scheduleId, String movieId, String hallName, Date showTime, double price, String seatStatus) {
        this.scheduleId = scheduleId;
        this.movieId = movieId;
        this.hallName = hallName;
        this.showTime = showTime;
        this.price = price;
        this.seatStatus = seatStatus;
    }

    // Getter和Setter方法
    public String getScheduleId() { return scheduleId; }
    public String getMovieId() { return movieId; }
    public String getHallName() { return hallName; }
    public Date getShowTime() { return showTime; }
    public double getPrice() { return price; }
    public String getSeatStatus() { return seatStatus; }
    public void setSeatStatus(String seatStatus) { this.seatStatus = seatStatus; }
}
